# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=py3-imdbpy
pkgver=2021.4.18
pkgrel=4
pkgdesc="Python bindings for the Internet Movie Database (IMDb)"
url="https://imdbpy.sourceforge.io/"
arch="noarch"
license="GPL-2.0-or-later"
depends="py3-lxml py3-sqlalchemy"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/I/IMDbPY/IMDbPY-$pkgver.tar.gz"
options="!check" # Disable tests for now: https://github.com/alberanid/imdbpy/issues/240
builddir="$srcdir/IMDbPY-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
512e459f18018b0439ba7162a85b9492d9bb58e7d360258c228e7437ac971c6957b22017561437c7922dbe3251a9150e99d9590b099e72db8034b0cfe13841fa  IMDbPY-2021.4.18.tar.gz
"
